class Product < ActiveRecord::Base
	belongs_to :category
	validates_presence_of :name
	validates_presence_of :description
	validates_presence_of :category_id
	validates_numericality_of :price, :greater_than => 0
end
